package member;

import java.sql.SQLException;

import com.ibatis.sqlmap.client.SqlMapClient;

public class MemberDAO {
	public void insert(SqlMapClient sqlMap, Member member) throws SQLException {
		sqlMap.insert("member.insert", member);
	}
	public Member select(SqlMapClient sqlMap, String id) throws SQLException {
		return (Member) sqlMap.queryForObject("member.select", id);
	}
	public void update(SqlMapClient sqlMap, Member member) throws SQLException {
		sqlMap.update("member.update", member);
	}
	public void delete(SqlMapClient sqlMap, String id) throws SQLException {
		sqlMap.delete("member.delete", id);
	}
}
